<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div class="fed">
	<form action="<s:url value='/email/subscribe'/>" method="post">
   	<p>想知道明天团购什么吗？</p>
       <div class="ipt_box"><input type="text" class="ipt" value="请输入您的邮箱..." name="email"/></div>
    <s:select cssClass="slc" list="#application.cities" listKey="id" listValue="name" name="cityId" theme="simple"></s:select>
    <input type="submit" class="fedbtn" value=""/>
	</form>
</div>
<div class="logo"></div>
<s:if test="#session.userId != null && #session.right.right == 0 ">
	<div class="logins"><span class="grey">欢迎您，${currentUser.username}！</span>  <a href="<s:url value="/console" />">我的团购</a> <a href="<s:url value="/user/login/out/login"/>">退出</a></div>
</s:if>
<s:else>
 	<div class="login"><a href="<s:url value="/user/customer/new"/>">注册</a>&nbsp;&nbsp;&nbsp;<a href="<s:url value="/user/login"/>">登录</a></div>
</s:else>
<div class="clear"></div>
